package cn.topcodes.tcsf.wechat.domain.entity;

import cn.topcodes.tcsf.admin.commons.domain.IdEntity;
import lombok.Data;
import javax.persistence.Table;
import java.util.Date;

/**
 * 微信邀请二维码
 */
@Data
@Table(name = "t_wechat_invite")
public class WechatInvite extends IdEntity {

    public static final String FIELD_TYPE = "type";

    public static final String FIELD_SENCE_STR = "senceStr";

    public static final String FIELD_QRCODE_CONTENT = "qrcodeContent";

    public static final String FIELD_QRCODE_URL = "qrcodeUrl";

    public static final String FIELD_EXPIRED_SECONDS = "expiredSeconds";

    public static final String FIELD_WECHAT_USER_ID = "wechatUserId";

    public static final String FIELD_TIME = "time";

    public static final String FIELD_TICKET = "ticket";

    public static final String FIELD_PARAMS = "params";

    public static final String FIELD_WECHAT_MP_ID = "wechatMpId";

    /**
     * 临时
     */
    public static final String TYPE_TEMP = "Temp";

    /**
     * 永久
     */
    public static final String TYPE_FOREVER = "Forever";

    /**
     * 分享二维码类型，包括 临时和永久两种方式
     */
    private String type;

    /**
     * 场景字符串
     */
    private String senceStr;

    /**
     * 二维码内容
     */
    private String qrcodeContent;

    /**
     * 二维码地址
     */
    private String qrcodeUrl;

    /**
     * 到期秒数
     */
    private Long expiredSeconds;

    /**
     * 微信用户ID
     */
    private Long wechatUserId;

    /**
     * 分享时间
     */
    private Date time;

    /**
     * 票据
     */
    private String ticket;

    /**
     * 自定格式参数
     */
    private String params;

    /**
     * 公众号id
     */
    private Long wechatMpId;
}
